package com.ysd.lis.entity.lab;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ysd.lis.entity.BaseEntityJpa;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 * cold_chain.LAB_INSTR_SETUP 仪器表
 * </p>
 *
 * @author Bai
 * @since 2023-12-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("LAB_INSTR_SETUP")
@Entity
@Table(name = "LAB_INSTR_SETUP")
public class LabInstrSetup extends BaseEntityJpa implements Serializable {
    @TableField("WORK_GROUP")
    @Column(name = "WORK_GROUP")
    private String workGroup;//所属检验组

    @TableField("INSTR_CODE")
    @Column(name = "INSTR_CODE")
    private String instrCode;//仪器代号

    @TableField("INSTR_ID_NO")
    @Column(name = "INSTR_ID_NO")
    private String instrIdNo;//仪器ID

    @TableField("INSTR_NAME")
    @Column(name = "INSTR_NAME")
    private String instrName;//仪器名称

    @TableField("INSTR_MARK")
    @Column(name = "INSTR_MARK")
    private String instrMark;//仪器型号

    @TableField("INSTR_CLASS")
    @Column(name = "INSTR_CLASS")
    private String instrClass;//仪器类别

    @TableField("INSTR_REGISTER")
    @Column(name = "INSTR_REGISTER")
    private String instrRegister;//仪器注册码

    @TableField("INSTR_REGISTER_DATE")
    @Column(name = "INSTR_REGISTER_DATE")
    private Timestamp instrRegisterDate;//注册时间

    //@TableField("RPT_GROUP_ID")
    //private String rptGroupId;//对应报告单元

    @TableField("RPT_GROUP")
    @Column(name = "RPT_GROUP")
    private String rptGroup;//工作组编号

    @TableField("INSTR_CALLED")
    @Column(name = "INSTR_CALLED")
    private String instrCalled;//仪器简称

    @TableField("SETUP_COMPUTER")
    @Column(name = "SETUP_COMPUTER")
    private String setupComputer;//安装计算机名

    @TableField("SETUP_COMPUTER_MAC")
    @Column(name = "SETUP_COMPUTER_MAC")
    private String setupComputerMac;//安装计算机名mac

    @TableField("SETUP_INSTALL_DATE")
    @Column(name = "SETUP_INSTALL_DATE")
    private Timestamp setupInstallDate;//安装时间

    @TableField("SETUP_RESET_DATE")
    @Column(name = "SETUP_RESET_DATE")
    private Timestamp setupResetDate;//重装时间

    @TableField("INSTR_STOP_DATE")
    @Column(name = "INSTR_STOP_DATE")
    private Timestamp instrStopDate;//停用时间

    @TableField("COMPUTER_IP")
    @Column(name = "COMPUTER_IP")
    private String computerIp;//ip

    @TableField("INSTALL_DEPT")
    @Column(name = "INSTALL_DEPT")
    private String installDept;//安装科室

    @TableField("INSTR_USE")
    @Column(name = "INSTR_USE")
    private String instrUse;//仪器用途

    @TableField("IS_USE")
    @Column(name = "IS_USE")
    private String isUse;//是否在用

    @TableField("INTERFACE_CODE")
    @Column(name = "INTERFACE_CODE")
    private String interfaceCode;//接口代号

    @TableField("INTERFACE_TYPE")
    @Column(name = "INTERFACE_TYPE")
    private String interfaceType;//接口类型

    @TableField("RUN_TIME")
    @Column(name = "RUN_TIME")
    private Timestamp runTime;//运行时间

    @TableField("RUN_ID")
    @Column(name = "RUN_ID")
    private String runId;//运行ID

    @TableField("OUT_TIME")
    @Column(name = "OUT_TIME")
    private Timestamp outTime;//退出时间

    @TableField("RUN_COMPUTER")
    @Column(name = "RUN_COMPUTER")
    private String runComputer;//运行电脑

    @TableField("RUN_COMPUTER_IP")
    @Column(name = "RUN_COMPUTER_IP")
    private String runComputerIp;//运行电脑IP

    @TableField("INPUT_CODE")
    @Column(name = "INPUT_CODE")
    private String inputCode;


    @TableField("IS_QC")
    @Column(name = "IS_QC")
    private Boolean isQc;


    @TableField("POCT")
    @Column(name = "POCT")
    private Integer poct;



    /**
     * 报告单元名称
     */
    @TableField(exist = false)
    @Transient
    private String reportGroupName;
}
